
<div id='content_bar' class='action'>
  <%= link_to_remote "New Agent",{  :url =>{  :controller => 'agent', :action => 'new'} }, {  :id => 'link_to_add_agent'}%>
</div>

<table>
  <tr>
    <% for column in Agent.content_columns %>
    <th><%= column.human_name %></th>
    <% end %>
  </tr>
  <% for agent in @agents %>
  <tr>
  <% for column in Agent.content_columns %>
    <td><%=h agent.send(column.name) %></td>
  <% end %>
    <td><%= link_to 'Show', :action => 'show', :id => agent %></td>
    <td><%= link_to 'Edit', :action => 'edit', :id => agent %></td>
    </tr>
<% end %>

</table>


<%= link_to _('Previous page'), { :page => @agent_pages.current.previous } if @agent_pages.current.previous %>
<%= link_to _('Next page'), { :page => @agent_pages.current.next } if @agent_pages.current.next %>

<%= pagination_links(@agent_pages) %>